﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OMailLineMacTypeReport.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MacModel.OMailLineMacTypeReport" %>

<%if(showchart==1){ %>
<html>
    <head>
        <script type="text/javascript" src="../js/jquery-1.4.4.min.js"></script>
        <script type="text/javascript" src="../Highcharts/js/highcharts.js"></script>
        <script type="text/javascript" src="../Highcharts/js/themes/grid.js"></script>
        <script type="text/javascript">
        var FirstBugTimeReportchart;
        $(document).ready(function () {
            FirstBugTimeReportchart = new Highcharts.Chart({
                chart: {
                    renderTo: 'FirstBugTimeReportcontainer',
                    defaultSeriesType: 'line'
                },
                title: {
                    text:  '<%=Year %>'+'年制程检验统计表'
                },
                xAxis: {
                    categories: <%=GetReport2JSCategories() %>
                },
                yAxis: {
                    min: 0,
                    title: {
                        text: '（台）'
                    }
                },
                legend: {
              
                },
                tooltip: {
                    valueDecimals: 2,
                    formatter: function () {
                        return "月份["+this.x+"] 机型:[" + this.series.name+"] "+ this.y+"台" ;
                    }
                },
                plotOptions: {
                    line: {
                        dataLabels: {
                            enabled: false
                        }
                    }
                },
                series:  <%=GetReport2JSSeries() %>
            });
        });

        </script>
    </head>

    <body>
    <div id="FirstBugTimeReportcontainer" style=" width:90%; height:300px; margin: 0 auto"></div>
    </body>
</html>

<%}else{ %>
<form id="pagerForm" method="post" action="MacModel/OMailLineMacTypeReport.aspx">
<input type="hidden" name="Year" value="<%=Year %>" />
<input type="hidden" name="Month" value="<%=Month %>" />
<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
</form>
<form id="XZKaoQinTJReportform1" runat="server" method="post" action="MacModel/OMailLineMacTypeReport.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        
        <table class="searchContent">
            <tr>
                <td>
                    请选择年份:
                </td>
                <td>                   
                    <select name="Year" class="combox" onchange="return navTabSearch(XZKaoQinTJReportform1)">
                        <%=GetYearList()%>
                    </select>                   
                </td>
               
            </tr>
        </table>
    </div>
</div>
<div class="pageContent">   
    <%=GetTableHtml(400) %>
    <div>
         <iframe width="100%" height="420" frameborder="0" src="MacModel/OMailLineMacTypeReport.aspx?Year=<%=Year %>&showchart=1"></iframe>  
    </div>
</div>
</form>

<%} %>